module.exports = {
    publicPath:'./' ,
    devServer: {
        proxy: {
            '/api':{
                target: 'http://interface.91118.com',
                // target: 'http://192.168.3.20:8154/',
                changeOrigin: true,
                pathRewrite: {
                '^/api': '/'
                }
            },
        },
        disableHostCheck: true
    },
    chainWebpack: config => {
        // 其他配置
        config.entry('main').add('babel-polyfill') // main是入口js文件
    },
    lintOnSave: false,
    configureWebpack: config => {
        //打包文件大小配置
        config["performance"] = {
            "maxEntrypointSize": 10000000,
            "maxAssetSize": 30000000
        }
    }
};
